<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <script src="${pageContext.request.contextPath}/js/jquery-3.6.1.js"></script>
    <title>main_left</title>
    <style>
*{
  margin: 0;
  padding: 0;
}
body{

}
.box {
  width: 200px;
  height:660px;
  
}   
.box .box-item  {
  border-bottom: 1px solid grey;
  
}
.title{
margin-left:10px;
}
.box .title {
  background-color: rgb(255, 287, 161);
  cursor: pointer;
}
.box-item-content {
  cursor: pointer;
  height: 0;
  overflow: hidden;
  background-color: rgb(245, 245, 245);
  transition: .5s all;
}
ul {
  list-style: none;
}
ul li {
  cursor: pointer;
  margin-left: 10px;
}
ul li:hover{
  background-color: #2980b9;
}
.box:hover .box-item:hover .box-item-content {
  height: 80px;
}
p{
    font-size: 22px;
    color: black;
}
a{
    text-decoration: none;
    font-size: 20px;
    color: black;
}
</style>
<script type="text/javascript">
$(()=>{
	if(${user.role==1? true:false}){
	$(".hidd").hide();	
	}
})
</script>
</head>
<body>
    <div class="box">
        <div class="box-item">
          <p class="title">个人中心</p>
          <ul class="box-item-content">
            <li><a href="../jsp/personalDetails.jsp" target="iframeContent">个人信息</a></li>
            <li><a href="${pageContext.request.contextPath }/jsp/admineditpassword.jsp" target="iframeContent">修改密码</a></li>
          </ul>
        </div>
        <div class="box-item">
          <p class="title">新闻管理</p>
          <ul class="box-item-content">
            <li><a href="${pageContext.request.contextPath }/jsp/adminaddnews.jsp" target="iframeContent">发布新闻</a></li>
            <li><a href="${pageContext.request.contextPath }/adminnewslist" target="iframeContent">新闻列表</a></li>
          </ul>
        </div>
        <div class="box-item hidd">
          <p class="title">用户管理</p>
          <ul class="box-item-content">
            <li><a href="${pageContext.request.contextPath }/jsp/adminadduser.jsp" target="iframeContent">新增用户</a></li>
            <li><a href="${pageContext.request.contextPath }/adminuserlist" target="iframeContent" >用户列表</a></li>
          </ul>
        </div>
      </div>
</body>
</html>